
PREFIX ?=../install/bin/		#PREFIX没被定义则默认这个路径
APP_NAME = test_logger

CFLAGS += -I ../install/include/		#追加	
LDFLAGS += -I ../install/lib/ -l logger

all:clean
	gcc ${CFLAGS} test_logger.c -o ${APP_NAME} ${LDFLAGS}

clean:
	@rm -f ${APP_NAME}

distclean:clean
	rm -f *.log

install:
	mkdir -p ${PREFIX}/bin
	cp ${APP_NAME} ${PREFIX}/bin
